#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
void main ()
{
srand(time(NULL));
const int m=3;
const int n=4;
int mas [m] [n];
int sum=0;
	for (int i=0;i<m;i++)
	{
		for (int j=0;j<n;j++)
		{
			mas [i] [j]=rand()%10;
			cout<<mas [i] [j]<<" ";
		}
	}
	for (int i=0;i<m;i++)
	{
		for (int j=0;j<n;j++)
		{ 
			
			if(mas [i] [j]==0)
			{sum++;}
			
		}
	}
	cout<<"\n";
	cout<<"cheslo  0 vstrechaetsa v masive = "<<sum;
	cout<<"\n";
}